Seed doc updates, and Gio async directory listing
Published 2010-03-08 13:52:00
The documentation for seed gobject introspection is improving continually, I now have a jhbuild virtual machine, which is picking up the latest versions from git.
In addition many of the documentation details have been expanded, including
- Interfaces, Enums
- callback methods are now documented
- More libraries have been added.
- More doc comments can be picked up
With better documentation it's finally possible to figure out how to use the API. A classic example of this was a small problem I tried to solve before the API documentation was available. Listing a directory asynchronously, It took me over an hour to get close to figuring out how to do this, I eventually had to give up. as digging through the source, C reference and GIR files took so long.
However within 5 minutes with the documentation, I was able to write a small script to do this.
Gio = imports.gi.Gio; Gtk = imports.gi.Gtk; var f = Gio.file_new_for_path('/home/'); f.enumerate_children_async ( "*", Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_DEFAULT, null, function(o,ar) { // listing completed.. var fe = f.enumerate_children_finish(ar);
var ch = false;
while (ch = fe.next_file(null)) { Seed.print(ch.get_name()); } Seed.quit(); }, null); Gtk.main();
Mentioned By:
www.planet-php.net : Planet PHP (8 referals)
blog.astrumfutura.com : Maugrim The Reaper's Blog (3 referals)
google.com : bk,ggio (2 referals)
google.com : directory listing (1 referals)
google.com : DIRECTORY OF DIRECTORY LIST (1 referals)
google.com : enumerate_children_async gio (1 referals)
google.com : gio (1 referals)
google.com : gio directory list (1 referals)
google.com : site:akbkhome.com doc (1 referals)
www.planet-php.net : Planet PHP (8 referals)
blog.astrumfutura.com : Maugrim The Reaper's Blog (3 referals)
google.com : bk,ggio (2 referals)
google.com : directory listing (1 referals)
google.com : DIRECTORY OF DIRECTORY LIST (1 referals)
google.com : enumerate_children_async gio (1 referals)
google.com : gio (1 referals)
google.com : gio directory list (1 referals)
google.com : site:akbkhome.com doc (1 referals)
Follow us
-
- Some thoughts on the language server and its usefulness in the roobuilder
- Roo Builder for Gtk4 moving forward
- Clustered Web Applications - Mysql and File replication
- GitLive - Branching - Merging
- PDO_DataObject Released
- PDO_DataObject is under way
- Mass email Marketing and anti-spam - some of the how-to..
- Hydra - Recruitment done right
Blog Latest
-
Twitter - @Roojs